/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication4;
import java.util.*;
/**
 *
 * @author Polina
 */
public class JavaApplication4 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner InPut = new Scanner(System.in);
           String str= InPut.nextLine();
           StringBuilder NewString = new StringBuilder(str);
           NewString.reverse();
           System.out.println(NewString);
    }
}
